Skip to content

Conversation

@rickyrombo
Copy link
Contributor

@rickyrombo rickyrombo commented Sep 5, 2025

Adds the SetAuthority and Close instructions to the claimable tokens program.

SetAuthority is a proxy to spl_token's own set_authority. It allows the claimable tokens account to be reassigned elsewhere by setting the owner. Also allows changing the closing authority to help safeguard rent (provided the owner hasn't changed).

Close is a proxy to spl_token's own close_account. It allows the rent to be reclaimed to a hardcoded address if the closeAuthority is not set and the owner is still the program PDA authority.

Tested using the CLI on a local solana-test-validator:

  • Created a claimable token account
  • Closed it
  • Recreated it
  • Set close authority to my wallet address
  • Closing it via the program now fails
  • Set owner to my wallet address
  • Verified it shows up as an aux token on my wallet

@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2025

⚠️ No Changeset found

Latest commit: d8faad1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@rickyrombo rickyrombo marked this pull request as ready for review November 3, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants